package com.xuecheng.media.client;

import com.xuecheng.commons.model.vo.MediaVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("xc-media-service")
public interface MediaClient {

    @GetMapping("/media/{mediaId}")
    ResponseResult<MediaVo> findMediaById(@PathVariable("mediaId")Long mediaId);
}
